package com.china.produce.task;

import com.google.common.collect.Lists;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2024/1/20
 */
@Service
public class ATaskImpl implements ITask{

    @Override
    public Map<String, List<String>> getResult() {
        HashMap<String, List<String>> map = new HashMap<>();
        ArrayList<String> strs = Lists.newArrayList();
        strs.add("a_impl");
        strs.add("a_impl2");
        strs.forEach(str -> {
            map.computeIfAbsent("aTask", k -> new ArrayList<String>()).add(str);
        });

        return map;
    }
}
